Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tox posargs #706

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Add tox posargs #706

merged 1 commit into from
Feb 7, 2025

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Nov 21, 2024

Substitution with {posargs} allows devs to pass additional arguments to the tox command. Especially helpful if you like to run only a subset of tests for debugging. E.g

tox -e py313 -- --no-cov flit_core/tests_core/test_config.py

# would run
py313: commands[0]> python -m pytest --cov=flit --cov=flit_core/flit_core --no-cov flit_core/tests_core/test_config.py

https://tox.wiki/en/latest/config.html#substitutions-for-positional-arguments-in-commands

@takluyver takluyver merged commit c13d414 into pypa:main Feb 7, 2025
1 check passed
@takluyver takluyver added this to the 3.11 milestone Feb 7, 2025
@cdce8p cdce8p deleted the tox-posargs branch February 7, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants